<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        h1{
            color: red;
            color: #00ff00;
            color: #00f;
            color: rgb(255,0,0);
            color: rgba(255,0,0,0.5);
        }
        #d1{
            width: 200px;
            height: 200px;
            background-color: pink;
            background-image: url("../b.jpg");/*设置背景图片*/
            background-size: 100px 100px;/*设置背景尺寸:宽 高*/
            background-repeat: no-repeat;/*设置不重复*/
            background-position: 30px 50px;/*设置背景位置:x偏移值 y偏移值*/
            background-position: 50% 50%;/*通过百分比设置背景位置*/
        }
        #d2{
            width: 611px;
            height: 376px;
            background-color: #e8e8e8;
            background-image: url("https://doc.codeboy.com/tstore_v1/images/itemCat/study_computer_img1.png");
            background-repeat: no-repeat;
            background-size: 318px 319px;
            background-position: 90% 70%;
        }
    </style>
</head>
<body>
<div id="d1"></div>
<div id="d2"></div>
<h1>颜色测试</h1>
</body>
</html>